
const TokenKey = 'bufan-token'

export function getToken() {
  return window.localStorage.getItem(TokenKey)
}

export function setToken(token) {
//   return Cookies.set(TokenKey, token)
    window.localStorage.setItem(TokenKey,token)
}

export function removeToken() {
    window.localStorage.removeItem(TokenKey)
    window.localStorage.removeItem('user')
}
